package com.itheima.a07oopextendsdemo07;

/***
 *@title Test
 *@description <TODO description class purpose>
 *@author 12468
 *@version 1.0.0
 *@create 2024/10/23 0:09
 **/
public class Test {
    public static void main(String[] args) {
        Manager m = new Manager("001", "zhangsan", 15000, 8000);
        System.out.println(m.getId() + ", " + m.getName() + ", " + m.getSalary() + ", " + m.getBonus());
        m.work();
        m.eat();


        Cook c = new Cook();
        c.setId("002");
        c.setName("lisi");
        c.setSalary(20000);
        System.out.println(c.getId() + ", " + c.getName() + ", " + c.getSalary());
        c.work();
        c.eat();
    }
}
